<?php

include "inc/comm.inc.php";
//echo rendertpl("test.tpl");

//echo $_db->processwhere("`id`='1' and order >= 1234 or date in ('1', '2', '3') and d = todate('sdfd','12343')");

//echo $_db->select("order", "distinct haha, count(haha)", "id=1");

//	preg_match_all('/(\w+)=((\w|%)+)&?+/', "a=b&a1=b1&12=%25%ab+", $matches, PREG_SET_ORDER);
//	foreach($matches as $match){
//		//echo print_r($match,1);
//		$name = $match[1];
//		$value= $match[2];
//		//echo "$name => $value\n";
//		$GLOBALS["r_$name"]=$value;
//	}
//	
//	foreach($GLOBALS as $key => $value){
//		//echo "h:$key => $value\n";
//		if(strpos($key, "r_")!==false)
//			echo "$key => $value\n";
//	}

//echo ($j==$i++)?"haha":"no";
//echo ($j==$i++)?"haha":"no";

//mkdir("e:/test/test/test.txt", 0777, TRUE);

//header("Content-Type: text/html; charset=utf-8");
//$var = array(array("name"=>"", "value"=>"没有选择任何项", "svalue"=>""));
//if(!isset($_POST['q'])){
//}
//else{
//	$var = array(array("name"=>$_POST['q'], "value"=>"您输入的搜索选项是:$_POST['q']."));
//}
//echo json_encode($var);


//发送短信
//sendsms(array("18618160032", "18210913063"), "短信集成测试, 请回复:)");
//recvsms();

//测试全局变量
//session_start();
//echo "before:$_SESSION[time]\n";
//$time=time();
//echo "after:$time\n";
//$_SESSION['time'] = $time;

//测试insert返回
//echo ($_db->_query("insert into t_test(c_name) values('haha1')"));

//echo urldecode("http%3A%2F%2Fforum.jquery.com%2Ftopic%2Fjquery-api-1-4-2-in-chm-format-with-comments-20-7-2010");
//echo date("Y-m-d H:i:s");
//$t = explode(" ", microtime(false));
//echo (int)($t[0]*1000);

echo json_encode(1);
?>